package edu.spec.pms.service.iface;


import org.madgecko.basic.model.Pager;
import edu.spec.pms.model.student.Student;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

public interface IStudentService {
	void add(Student student);
	void delete(Integer id);
	void update(Student student);
	Student load(Integer id);
	Student loadByXh(String xh);
	Student loadByXhAndSfzh(String xh, String sfzh);
	Student loadByOpenId(String openId);
	Student loadbyOpenId(String openId);
	Pager<Student> findStudentByCon(Integer status, Integer clazzId, String con);
	List<Student> listStudentByClazz(Integer clazzId);
	boolean importIn(MultipartFile file, Integer clazzId, HttpServletRequest req, HttpSession session);
}
